<?=$this->render('header.phtml');?>
<div id="welcome" style="margin:30px">
    <h1>Welcome to SalesHero.com</h1>
    <h3>This is a demo page of how to use Zend Framework.</h3>

    <fieldset style="width:500px;">
    <legend>Submit a text to mysql</legend>
    <form action="<?=$this->url(array('action' => 'test'))?>" method="POST">
    <input type="text" name="content" size="100" /><br />
    <input type="submit" />
    </form>
    </fieldset>

    <fieldset style="width:500px;">
    <legend>The text in mysql</legend>
    <table class="tablegrid" width="100%">
    <tr align="left"><th>ID</th><th>Content</th><th>Delete</th></th>
    <? foreach ($this->data as $row) { ?>
    <tr><td><?=$row['id']?></td><td><?=$row['content']?></td><td><a href="<?=$this->url(array('action' => 'delTest', 'id' => $row['id']))?>">×</a></td></tr>
    <? } ?>
    </table>
    </fieldset>
</div>
<?=$this->render('footer.phtml');?>